<?php TPL::output('global/header.tpl.htm'); ?>

  <div class="i_bd mainElem i_clear i_allbg">
    <div class="i_left L_sidebar">
         
      <!--新通知_s-->
      <div class="new_notice" id="index_notification"<?php if (!$this->user_info['notification_unread']) { ?> style="display:none"<?php } ?>>
        <h3><span class="i_right p_sx" style="margin:0; line-height:15px;"><a href="account/setting/privacy/#notifications" class="p_set i_small" title="通知设置">通知设置</a></span>新通知<em class="i_message_tooltip_b" name="notification_unread_num"><?php echo $this->user_info['notification_unread'];?></em></h3>
        <ul class="new_ls" id="notification_list"></ul>
        <ul class="new_ls">
          <li><a href="notifications/" class="i_green_but i_right">查看所有</a><a href="javascript:;" onclick="read_notification(0, false, false);" class="i_gray_but">我知道了</a></li>
        </ul>
      </div>
      <!--新通知_e-->

	  <!-- 最新动态 -->
	  <a name="c_contents"></a>
	  <div class="b_restrain">
        <h4  class="i_gloCor latest_trendst_h3 q_content_h3"><a class="default_gray_but v_more i_right i_green_but x" id="delete_draft" href="javascript:;" style="display:none;" onclick="if (confirm('确认清空所有草稿吗?')) { $.each($('.delete_draft'), function (i, e) { $(e).click(); }); }" >清空所有</a><b><span id="c_title">最新动态</span></b></h4>
	    <div id="c_list"></div>

	    <p id="bp_more"><a class="i_ajax_more" href="javascript:;">更多...</a></p>
	  </div>
	</div>

    <div class="R_sidebar i_index">

		<!--公告_s-->
		<?php TPL::output('block/sidebar_announce.tpl.htm'); ?>	
		<!--公告_s-->

		<?php TPL::output('block/sidebar_menu.tpl.htm'); ?>	
		
		<div class="i_rightMain">
        <!--邀请好友加入社区-->
        <p class="unityjoin">邀请好友加入社区<?php if ($this->user_info['invitation_available']) { ?><em class="i_message_tooltip_s"><?php echo $this->user_info['invitation_available']; ?></em><?php } ?> <a href="invitation/" class="i_green_but" title="发送邀请 »">发送邀请</a> </p>
        
        <!-- 边栏可能感兴趣的人或标签 -->
		<?php TPL::output('block/sidebar_recommend_users_topics.tpl.htm'); ?>
      </div>
    </div>
  </div>

<?php if ($_GET['first_login']) { ?>
<style type="text/css">
	@import url('<?php echo G_STATIC_URL; ?>/css/<?php echo $this->template_name; ?>/indexInfo.css');
</style>

<script type="text/javascript">
$(document).ready(function () {
	$.get(G_BASE_URL+'/account/ajax/welcome_message_template/', function (template) {
		$('#ajax_data').html(template);
		
		welcome_step_1_load();
	});
});
</script>
<?php } ?>

<?php TPL::output('global/footer.tpl.htm'); ?>